#include"DList.h"

int main()
{
	ListNode* plist = ListCreate();
	ListPrint(plist);

	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPrint(plist);

	ListPushFront(plist, 0);
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPrint(plist);

	ListPopFront(plist);
	ListPopFront(plist);
	ListPrint(plist);

	ListPopBack(plist);
	ListPopBack(plist);
	ListPrint(plist);

	ListNode* p = ListFind(plist, 1);
	printf("%p\n", p);

	ListInsert(p, 0);
	ListPrint(plist);

	ListErase(p);
	ListPrint(plist);

	ListDestory(plist);
	ListPrint(plist);

}